home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 1.iso / toolbox / src / exampleCode / opengl / 2Dwrap / igl / main.c < prev    next >
C/C++ Source or Header  |  1996-11-11  |  2KB  |  59 lines

  1. /*
  2.  * Copyright (c) 1995, Silicon Graphics, Inc.
  3.  *
  4.  * Permission to use, copy, modify, distribute, and sell this software and
  5.  * its documentation for any purpose is hereby granted without fee, provided
  6.  * that the name of Silicon Graphics may not be used in any advertising or
  7.  * publicity relating to the software without the specific, prior written
  8.  * permission of Silicon Graphics.
  9.  *
  10.  * THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
  11.  * EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
  12.  * WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
  13.  *
  14.  * IN NO EVENT SHALL SILICON GRAPHICS BE LIABLE FOR ANY SPECIAL, INCIDENTAL,
  15.  * INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES WHATSOEVER
  16.  * RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER OR NOT ADVISED OF THE
  17.  * POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF LIABILITY, ARISING OUT OF OR IN
  18.  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  19.  *
  20.  * OpenGL(TM) is a trademark of Silicon Graphics, Inc.
  21.  */
  22.  
  23. #include <gl.h>
  24.  
  25. main()
  26. {
  27.     prefposition(100,400,100,400);
  28.     winopen("irisGL arcs");
  29.     RGBmode();
  30.     gconfig();
  31.  
  32.     RGBcolor(0,0,0);
  33.     clear();
  34.  
  35.     ortho2(-10.0,10.0,-10.0,10.0);
  36.  
  37.     RGBcolor(255,255,0);
  38.     arcf(-5.,-5.6,4.0,2700,0);
  39.  
  40.     RGBcolor(0,255,255);
  41.     arc(5.,5.,3.0,1800,900);
  42.  
  43.     RGBcolor(255,255,255);
  44.     circf(-5.,5.,3.0);
  45.  
  46.     RGBcolor(255,0,0);
  47.     arci(5,-5,3,1000,2000);
  48.  
  49.     RGBcolor(255,255,0);
  50.     rect(-1.,-1.,2.0,2.0);
  51.  
  52.     RGBcolor(0,255,0);   
  53.     sboxf(2.,2.,3.5,3.5);
  54.  
  55.  
  56.     sleep(3);
  57.  
  58. }
  59.